import {get,post} from './index.ts'

// ts枚举
enum Api {
    login = '/api/index/getbanner',
    getaboutinfo = '/api/index/getaboutinfo',
    getadvantageinfo = '/api/index/getadvantageinfo',
    getteaminfo='/api/index/getteaminfo',
    getcaselist='/api/index/getcaselist',
    gethzhblist='/api/index/gethzhblist',
    addmessgeinfo='/api/index/addmessgeinfo',
    getprodcolorinfo='/api/index/getprodcolorinfo',
    getlxinfo='/api/index/getlxinfo',
    getcatelist='/api/index/getcatelist',
    prodinfo='/api/index/prodinfo',
    getsmprodcategorylist='/api/index/getsmprodcategorylist',
    vedioinfo='/api/index/vedioinfo',
    getsmprodcatelist='/api/index/getsmprodcatelist',
}

//首页轮播图
export const getbanners = (data:any) => {
    return  get(Api.login, data)
};
//企业简介
export const getaboutinfo = (data:any) => {
    return get(Api.getaboutinfo, data)
};
//优势
export const getAdvantageinfo = (data:any) => {
    return get(Api.getadvantageinfo, data)
};
//我的团队
export const geTteaminfo = (data:any) => {
    return get(Api.getteaminfo, data)
};
//案例
export const getCaselist = (data:any) => {
    return get(Api.getcaselist, data)
};
//合作伙伴
export const geThzhblist = (data:any) => {
    return get(Api.gethzhblist, data)
};
//留言
export const PsotAddmessgeinfo = (data:any) => {
    return get(Api.addmessgeinfo, data)
};
//颜色
export const getprodcolorinfo = (data:any) => {
    return get(Api.getprodcolorinfo, data)
};
//联系方式
export const getlxinfo = (data:any) => {
    return get(Api.getlxinfo, data)
};
//大理石子集
export const getcatelist = (data:any) => {
    return get(Api.getcatelist, data)
};
//大理石子集详情
export const prodinfo = (data:any) => {
    return get(Api.prodinfo, data)
};
//大理石子集
export const getsmprodcategorylist = (data:any) => {
    return post(Api.getsmprodcategorylist, data)
};
//视频
export const vedioinfo = (data:any) => {
    return get(Api.vedioinfo, data)
};
//搜索
export const getsmprodcatelist = (data:any) => {
    return get(Api.getsmprodcatelist, data)
};